﻿import request from '/@/utils/request';
enum Api {
  AddBusCategoryRole = '/api/busCategoryRole/add',
  DeleteBusCategoryRole = '/api/busCategoryRole/delete',
  UpdateBusCategoryRole = '/api/busCategoryRole/update',
  PageBusCategoryRole = '/api/busCategoryRole/page',
  GetSysRoleDropdown = '/api/busCategoryRole/SysRoleDropdown',
  GetBusCategoryDropdown = '/api/busCategoryRole/BusCategoryDropdown',
}

// 增加品类角色
export const addBusCategoryRole = (params?: any) =>
	request({
		url: Api.AddBusCategoryRole,
		method: 'post',
		data: params,
	});

// 删除品类角色
export const deleteBusCategoryRole = (params?: any) => 
	request({
			url: Api.DeleteBusCategoryRole,
			method: 'post',
			data: params,
		});

// 编辑品类角色
export const updateBusCategoryRole = (params?: any) => 
	request({
			url: Api.UpdateBusCategoryRole,
			method: 'post',
			data: params,
		});

// 分页查询品类角色
export const pageBusCategoryRole = (params?: any) => 
	request({
			url: Api.PageBusCategoryRole,
			method: 'post',
			data: params,
		});

export const getSysRoleDropdown = () =>
		request({
		url: Api.GetSysRoleDropdown,
		method: 'get'
		});
export const getBusCategoryDropdown = () =>
		request({
		url: Api.GetBusCategoryDropdown,
		method: 'get'
		});

